export default {
	data() {
		return {

		}
	},
	onLoad: function() {
		wx.showShareMenu({
			withShareTicket: true,
			menus: ["shareAppMessage", "shareTimeline"]
		})
	},
	onShareAppMessage(res) {
		if (res.from === 'button') {
			// 来自页面内分享按钮
			console.log(res.target);
		}
		return {
			title: '您的好友给您分享了一个小程序',
			imageUrl: 'https://hmj-test-oss.oss-cn-beijing.aliyuncs.com/uploads/20221014/70dd226dce7cbdd16a200d9ae7b3b815.png',
			path: 'https://hmj-dev.cy1015.com/api/pages/index/index'
		};
	},
	//分享到朋友圈
	onShareTimeline(res) {
		return {
			title: '红马甲',
			type: 0,
			imageUrl: 'https://hmj-test-oss.oss-cn-beijing.aliyuncs.com/uploads/20221014/70dd226dce7cbdd16a200d9ae7b3b815.png',
			summary: ''
		};
	}
}

